package com.ruoyi.client.service.impl;

import com.ruoyi.client.pojo.vo.IndexCarouselVo;
import com.ruoyi.client.pojo.vo.IndexProductVo;
import com.ruoyi.client.service.IIndexService;
import com.ruoyi.client.mapper.IndexMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndexServiceImpl implements IIndexService {
    @Resource
    private IndexMapper indexMapper;
    @Override
    public List<IndexCarouselVo> listCarouselItems() {
        return indexMapper.listCarouselItems();
    }
    @Override
    public List<IndexProductVo> listRecommendedItems() {
        return indexMapper.listRecommendedItems();
    }
    @Override
    public List<IndexProductVo> listNewArrialItems() {
        return indexMapper.listNewArrialItems();
    }
    @Override
    public List<IndexProductVo> listTopSaleItems() {
        return indexMapper.listTopSaleItems();
    }
}
